package cn.ronghuanet.org.mapper;

import cn.ronghuanet.org.domain.Department;
import cn.ronghuanet.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface DepartmentMapper {
    // 增、改
    void insert(Department department);

    void update(Department department);

    // 删一个
    void delete(Serializable id);

    // 查一个
    Department selectById(Serializable id);

    // 查全部
    List<Department> selectAll();

    Long queryTotal(DepartmentQuery departmentQuery);

    List<Department> queryList(DepartmentQuery departmentQuery);

    void batchDelete(@Param("ids") List<Long> ids);

    List<Department> getDeptTree();

}


